<!--
 * @Author: gyc
 * @Date: 2020-05-27 11:05:14
 * @LastEditTime: 2020-07-15 10:44:37
 * @Description: Nuxt测试版
--> 
<template>
  <div class="ms-anli">
    <div class="ms-anli-col">
      <div class="ms-anli-search">
        <input />
      </div>
      <h3 id="tools">实用小工具</h3>
      <div class="ms-anli-box">
        <a :href="item.url" v-for="(item, index) in tList" :key="index" target="_blank">
          <div class="anli-item-item">
            <img :src="item.logo" />
            <div class="item-msg">
              <p>{{item.name}}</p>
              <p>阴阳师对弈竞猜专用预测网站!</p>
            </div>
          </div>
        </a>
      </div>
      <h3 id="movies">影视网站</h3>
      <div class="ms-anli-box">
        <a :href="item.url" v-for="(item, index) in ysList" :key="index" target="_blank">
          <div class="anli-item-item">
            <img :src="item.logo" />
            <p>{{item.name}}</p>
          </div>
        </a>
      </div>

      <h3 id="movies">技术博客</h3>
      <div class="ms-anli-box">
        <a :href="item.url" v-for="(item, index) in jsList" :key="index" target="_blank">
          <div class="anli-item-item">
            <img :src="item.logo" />
            <p>{{item.name}}</p>
          </div>
        </a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "anli",
  layout: "dpage",
  data() {
    return {
      tList: [
        {
          name: "对弈竞猜",
          url:
            "https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Client-side_web_APIs/Introduction",
          logo: "/img/yxdm.png"
        },
        {
          name: "ProcessOn",
          url:
            "https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Client-side_web_APIs/Introduction",
          logo: "/img/ProcessOn.jpg"
        },
        {
          name: "图片放大",
          url: "https://bigjpg.com/",
          logo: "#"
        }
      ],
      ysList: [
        {
          name: "和之梦",
          url: "https://www.hezhimeng.cn/",
          logo: "/img/hezhimeng.jpg"
        },
        {
          name: "完美看看",
          url: "https://www.wanmeikk.me/",
          logo: "/img/wanmeikk.png"
        },
        {
          name: "bilibili",
          url: "https://www.bilibili.com/",
          logo: "/img/bilibili.svg"
        }
      ],
      jsList: [
        {
          name: "WebApi",
          url:
            "https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Client-side_web_APIs/Introduction",
          logo: "/img/MDN.png"
        }
      ]
    };
  }
};
</script>

<style lang="scss" scoped>
@media screen and (max-width: 992px) {
  .ms-anli-col {
    width: 340px;
  }
}
@media screen and (min-width: 992px) {
  .ms-anli-col {
    width: 780px;
  }
}
a {
  color: black;
}
.ms-anli {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  justify-content: center;
  background-color: white;
  .ms-anli-col {
    position: relative;
    height: 80%;
    margin-top: 20px;
    background-color: white;
    padding-top: 10px;
    .ms-anli-search {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 40px;
      input {
        width: 120px;
        outline: none;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #aaa;
        text-align: center;
        margin-left: 5px;
        &:focus {
          border-bottom: 1px solid black;
        }
        &:focus label {
          font-size: 24px;
        }
      }
    }
    h3 {
      padding-left: 10px;
    }
    .ms-anli-box {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      margin-top: 10px;
      margin-bottom: 10px;
      padding-left: 10px;
      .anli-item-item {
        display: flex;
        align-items: center;
        padding-left: 20px;
        padding-right: 20px;
        min-width: 100px;
        height: 100px;
        background-color: white;
        cursor: pointer;
        margin-bottom: 20px;
        background-color: rgb(252, 252, 252);
        .item-msg {
          display: flex;
          height: 60px;
          flex-direction: column;
          justify-content: space-evenly;
        }
        &:hover {
          box-shadow: 2px 3px 8px rgb(224, 224, 224);
        }
        img {
          width: 60px;
          height: 60px;
          border-radius: 5px;
          margin-right: 20px;
        }
      }
    }
  }
  .go-index {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-25px);
    width: 50px;
    height: 30px;
    background-color: rgb(51, 51, 51);
    cursor: pointer;
    color: white;
    &:hover {
      background-color: black;
    }
  }
  .anli-anchor {
    display: flex;
    position: fixed;
    flex-direction: column;
    left: 10px;
    top: 65px;
    width: 120px;
    height: auto;
    background-color: white;
  }
}
@keyframes showBox {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
</style>